﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace ST.WX.Common.Exceptions
{
	public class WXPayException : Exception
	{
		/// <summary>
		/// 错误代码
		/// </summary>
		public int ErrorCode { get; set; }

		public WXPayException() : base()
		{

		}

		public WXPayException(string msg) : base(msg)
		{

		}

		public WXPayException(string msg, int errorCode) : base(msg)
		{
			ErrorCode = errorCode;
		}

		public WXPayException(string msg, Exception innerException) : base(msg, innerException)
		{

		}

		public WXPayException(SerializationInfo info, StreamingContext context) : base(info, context)
		{

		}
	}
}
